package com.example.viewgrouptest;

import android.content.Context;
import android.util.AttributeSet;
import android.util.Log;
import android.view.MotionEvent;
import android.widget.LinearLayout;

/**
 * Created by xhq on 2017/6/1.
 */

public class TestLinearLayout extends LinearLayout {

    public TestLinearLayout(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    @Override
    public boolean onInterceptTouchEvent(MotionEvent ev) {
        LogUtil.print("TestLinearLayout onInterceptTouchEvent",ev);
        return super.onInterceptTouchEvent(ev);
//        return true;
    }

    @Override
    public boolean dispatchTouchEvent(MotionEvent event) {
        LogUtil.print("TestLinearLayout dispatchTouchEvent",event);

        return super.dispatchTouchEvent(event);
    }

    @Override
    public boolean onTouchEvent(MotionEvent event) {
        LogUtil.print("TestLinearLayout onTouchEvent",event);

        return super.onTouchEvent(event);
    }

}

